package org.jun.util;


import com.microsoft.playwright.Browser;
import com.microsoft.playwright.Playwright;
import org.jun.factory.BrowserFactory;

import static org.jun.config.ConfigurationManager.config;


/**
 * @author aaron
 */
public final class BrowserManager {

    private BrowserManager() {}

    public static Browser getBrowser(final Playwright playwright) {
        return BrowserFactory.valueOf(config().browser().toUpperCase()).createInstance(playwright);
    }
}
